<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp"%>
<div id="sidebar">
	<ul class="nav">
		<li><a class="headitem item1" href="##">我的店铺</a>
          <ul class="opened">
            <li><a href="##" onclick="loadJsp(this,'/OutletsAction!myOultets.action')">基本信息</a></li>
            <buyou:permission privilege="view" module="user">
            <li><a href="##" onclick="loadJsp(this,'/UserManage!list.action')">人员管理</a></li>
            </buyou:permission>
          </ul>
        </li>
        <!-- 库存管理 -->
        <li><a class="headitem item2" href="##">库存管理</a>
          <ul>
          <!-- 
          	<li><a href="##" onclick="loadJsp(this,'/CategoryAction!list.action')">货物类别管理</a></li>
           -->
           <buyou:permission privilege="view" module="product">
          	 <li><a href="##" onclick="loadJsp(this,'/ProductAction!store.action?forSale=true')">货物管理</a></li>
           </buyou:permission>
            <buyou:permission privilege="update" module="product">
            <li><a href="##" onclick="loadJsp(this,'/ProductAction!store.action?forSale=false')">下架货物</a></li>
          	</buyou:permission>
          </ul>
        </li>
         <!-- 订单管理 -->
        <li><a class="headitem item3" href="##">订单管理</a>
          <ul>
          	<buyou:permission privilege="delivery" module="order">
          	<li><a href="##" onclick="loadJsp(this,'/OrderAction!add.action')">发货管理</a></li>
          	</buyou:permission>
          	<buyou:permission privilege="view" module="order">
          	<li><a href="##" onclick="loadJsp(this,'/OrderAction!list.action')">订单列表</a></li>
          	</buyou:permission>
          	<buyou:permission privilege="viewPurchase" module="order">
            <li><a href="##" onclick="loadJsp(this,'/OrderAction!list.action?type=PURCHASESORDER')">订单列表</a></li>
            </buyou:permission>
            <buyou:permission privilege="viewSales" module="order">
            <li><a href="##" onclick="loadJsp(this,'/OrderAction!list.action?type=SELLSORDER')">销售单</a></li>
            </buyou:permission>
            <buyou:permission privilege="viewDelivery" module="order">
            <li><a href="##" onclick="loadJsp(this,'/OrderAction!list.action?type=PURCHASESORDER')">查看发货单</a></li>
            </buyou:permission>
          </ul>
        </li>
         <!-- 销售管理 -->
         <buyou:permission privilege="salesManage" module="system">
        <li><a class="headitem item4" href="##">销售管理</a>
          <ul>
          	<li><a href="##" onclick="loadJsp(this,'/OrderAction!add.action?type=SELLSORDER')">销售录入</a></li>
          	<li><a href="##" onclick="loadJsp(this,'/StatisticalAction!list.action?type=SALES')">销售统计</a></li>
          </ul>
        </li>
       </buyou:permission>
        <li><a class="headitem item6" href="##" onclick="if(window.confirm('您确定要退出?')) window.location='/Logoff.action';">退出系统</a></li>
      </ul>
      <!--end subnav-->
    
    </div>
    <!--end sidebar-->
